'use strict'
const db = uniCloud.database()
exports.main = async (event,context)=>{
	if(event.type=='get'){
		return await db.collection('category').get()
	}
};